import request from "@/utils/request";

export function balance_index(params) {
  return request({
    url: "/balance/index",
    method: "get",
    params
  });
}

export function balance_info(params) {
  return request({
    url: "/balance/info",
    method: "get",
    params
  });
}

export function balanceWater_index(params) {
  return request({
    url: "/balanceWater/index",
    method: "get",
    params
  });
}

export function balance_pay(data) {
  return request({
    url: "/balance/pay",
    method: "post",
    data: data
  });
}

export function balance_settle(data) {
  return request({
    url: "/balance/settle",
    method: "post",
    data: data
  });
}

export function balance_close(data) {
  return request({
    url: "/balance/close",
    method: "post",
    data: data
  });
}

// 差额流水导出
export function export_user_balanceWater_list(data) {
  return request({
    url: "/export/export_user_balanceWater_list",
    method: "post",
    responseType: "blob",
    data: data
  });
}

// 用户差额导出----列表
export function export_user_balance_list(data) {
  return request({
    url: "/export/export_user_balance_list",
    method: "post",
    responseType: "blob",
    data: data
  });
}

export function balanceBatchSettle(data) {
  return request({
    url: "/balance/batchSettle",
    method: "post",
    data
  })
}